<html>
<head>
  <title>Grad</title>
  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track' => true %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
  <%= csrf_meta_tags %>
</head>
  <body class="hold-transition register-page">
  <div class="register-box">
    <div class="register-logo">
      <b>F</b>MZ
    </div>
    <div class="register-box-body">
      <p class="login-box-msg">Register a new membership</p>
      <%= form_for(@user) do |f| %>
        <div class="form-group has-feedback">
          <%= f.text_field :name, class: "form-control", placeholder: "Full name" %>
          <span class="glyphicon glyphicon-user form-control-feedback"></span>
        </div>
        <div class="form-group has-feedback">
          <%= f.email_field :email,  class: "form-control", placeholder: "Email" %>
          <span class="glyphicon glyphicon-envelope form-control-feedback"></span>
        </div>
        <div class="form-group has-feedback">
          <%= f.password_field :password, class: "form-control", placeholder: "Password" %>
          <span class="glyphicon glyphicon-lock form-control-feedback"></span>
        </div>
        <div class="form-group has-feedback">
          <%= f.password_field :password_confirmation, class: "form-control", placeholder: "Retype password" %>
          <span class="glyphicon glyphicon-log-in form-control-feedback"></span>
        </div>
        <div class="row">
          <div class="col-xs-6">
            <%= link_to "已有帐号", login_path, class:"btn btn-primary btn-block btn-flat" %>
          </div>
          <!-- /.col -->
          <div class="col-xs-6">
            <%= f.submit "注册", class: "btn btn-primary btn-block btn-flat" %>
          </div>
          <!-- /.col -->
        </div>
      <% end %>
    </div>
  </div>
  </body>
</html>